package cn.JunitTest;

import cn.dao.SystemLogDAO;
import cn.impl.SystemLogDAOImpl;
import cn.impl.UserDAOImpl;
import cn.model.TSystemLog;
import cn.util.Toolsutil;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class SystemLogDAOImplTest {

    /**
     * 构造方法重载基类的ForumContentDAOImpl()
     */
    SystemLogDAO udao = null;
    @Before
    public void init()
    {
        udao = new SystemLogDAOImpl();
    }
    @Test
    public void getSystemLogList() {
    }

    @Test
    public void getSystemLogAmount() {
    }

    @Test
    public void getOperTypes() {

    }

    @Test
    public void deleteLogById() {
    }

    @Test
    public void addLog() {
        TSystemLog tsm = new TSystemLog();
        tsm.setCreatedate(Toolsutil.getdatetimes());
        tsm.setDescription("mini");
        tsm.setExceptioncode("wewr");
        tsm.setExceptiondetail("sfsdfsd");
        tsm.setOpermethod("dfdfs");
        tsm.setOpertype("add");
        tsm.setParams("sdff");
        tsm.setUserid("admin");
        tsm.setRequestip("asas");
        System.out.println(udao.addLog(tsm));
    }

    @Test
    public void getLogById() {
    }

    @Test
    public void deleteAllLog() {
    }
}